package control.action;

import model.VNovel;
import business.dao.NovelDAO;
import business.impl.NovelDAOImpl;


public class GetCompNovelAction extends BaseAction {
	private int novelid;

	public void setNovelid(int novelid) {
		this.novelid = novelid;
	}

	/**
	 * @return
	 */
	public String execute() {
		NovelDAO ndao = new NovelDAOImpl();
		VNovel novel = ndao.getVNovelByName(novelid);
		
		request.setAttribute("novel", novel);
		return SUCCESS;
	}
}